package com.mumu.muPictureBackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mumu.muPictureBackend.model.dto.Space.CreateSpaceRequest;
import com.mumu.muPictureBackend.model.dto.Space.DeleteSpaceRequest;
import com.mumu.muPictureBackend.model.dto.Space.SpacePageRequest;
import com.mumu.muPictureBackend.model.dto.Space.UpdateSpaceRequest;
import com.mumu.muPictureBackend.model.entity.Space;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

@Service
public interface SpaceService extends IService<Space> {
     Long createSpace(CreateSpaceRequest createSpaceRequest, HttpServletRequest httpServletRequest);
     Page<Space> getSpaceList(SpacePageRequest spacePageRequest,HttpServletRequest httpServletRequest);

    Boolean deleteSpace(DeleteSpaceRequest deleteSpaceRequest, HttpServletRequest httpServletRequest);

    Boolean updateSpace(UpdateSpaceRequest updateSpaceRequest, HttpServletRequest httpServletRequest);
    void validSpace(Space space,boolean add);
}
